﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using PTExpress.DataAccess;
using System.Data;

namespace PTExpress.Views
{
    /// <summary>
    /// Interaction logic for ucDmXe.xaml
    /// </summary>
    public partial class ucDmXe : UserControl
    {
        string columns = "ten_xe,so_hieu,hang_xe,so_ghe,loai_xe,tinh_trang";
        
        public ucDmXe()
        {
            InitializeComponent();

            mainContent.StringBrowse = "ten_xe:Tên xe:150;so_hieu:Số hiệu:150;hang_xe:Hãng sản xuất:150;so_ghe:Số ghế:150;loai_xe:Loại xe:150;tinh_trang:Tình trạng:150";
            mainContent.TableSource = XeAccess.LayTatCaXe(columns);
            mainContent.F2 += new Templates.ucDmTemplate.GridKeyUp_F2(mainContent_F2);
            mainContent.F4 += new Templates.ucDmTemplate.GridKeyUp_F4(mainContent_F4);
            mainContent.F3 += new Templates.ucDmTemplate.GridKeyUp_F3(mainContent_F3);
            mainContent.F6 += new Templates.ucDmTemplate.GridKeyUp_F6(mainContent_F6);
            mainContent.F8 += new Templates.ucDmTemplate.GridKeyUp_F8(mainContent_F8);
        }

        void mainContent_F8(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        void mainContent_F6(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        void mainContent_F3(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        void mainContent_F4(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

        void mainContent_F2(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }

    }
}
